const express = require('express');
const { exec } = require('child_process');
const app = express();
const port = 8033;
app.use(express.static('public'));

app.use(function(req,res,next){
    console.log(req.hostname,req.url);next();
})
app.use('/', express.static('./'));

const addr = `http://localhost:${port}`
app.listen(port, () => {
	console.log(`Webserver listening at ${addr}`);
});
exec(`powershell Start-Process "${addr}"`);